home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
cat3
/
GetJoinStl.3
< prev
next >
Wrap
Text File
|
1994-09-20
|
3KB
|
133 lines
Tk_GetJoinStyle(3) Tk Library Procedures
_________________________________________________________________
NAME
Tk_GetJoinStyle, Tk_NameOfJoinStyle - translate between
strings and join styles
SYNOPSIS
#include <tk.h>
int
Tk_GetJoinStyle(_i_n_t_e_r_p, _s_t_r_i_n_g, _j_o_i_n_P_t_r)
char *
Tk_NameOfJoinStyle(_j_o_i_n)
ARGUMENTS
Tcl_Interp *_i_n_t_e_r_p (in) Interpreter to use for
error reporting.
char *_s_t_r_i_n_g (in) String containing name of
join style: one of
``bevel'', ``miter'', or
``round''.
int *_j_o_i_n_P_t_r (out) Pointer to location in
which to store X join
style corresponding to
_s_t_r_i_n_g.
int _j_o_i_n (in) Join style: one of Join-
Bevel, JoinMiter, Join-
Round.
_________________________________________________________________
DESCRIPTION
Tk_GetJoinStyle places in *_j_o_i_n_P_t_r the X join style
corresponding to _s_t_r_i_n_g, which will be one of JoinBevel,
JoinMiter, or JoinRound. Join styles are typically used in
X graphics contexts to indicate how adjacent line segments
should be joined together. See the X documentation for
information on what each style implies.
Under normal circumstances the return value is TCL_OK and
_i_n_t_e_r_p is unused. If _s_t_r_i_n_g doesn't contain a valid join
style or an abbreviation of one of these names, then an
error message is stored in _i_n_t_e_r_p->_r_e_s_u_l_t, TCL_ERROR is
returned, and *_j_o_i_n_P_t_r is unmodified.
Tk_NameOfJoinStyle is the logical inverse of
Tk_GetJoinStyle. Given a join style such as JoinBevel it
returns a statically-allocated string corresponding to _j_o_i_n.
Tk 1
Tk_GetJoinStyle(3) Tk Library Procedures
If _j_o_i_n isn't a legal join style, then ``unknown join
style'' is returned.
KEYWORDS
bevel, join style, miter, round
Tk 2